package com.shoppingmall.service;

import com.shoppingmall.common.ServletResponse;

/**
 * Created by
 *
 * @author touni
 * @date 2019/3/21
 * @time 15:44
 */
public interface CartService {
    ServletResponse getCartList(Integer id);

    ServletResponse addOrUpdateProductToCart(Integer id, Integer productId, Integer count);

    ServletResponse deleteProductFromCart(Integer userId,String productIds);

    ServletResponse selectOneProduct(Integer userId,Integer productId);

    ServletResponse unselectOneProduct(Integer userId, Integer productId);

    ServletResponse getCartProductCount(Integer userId);

    ServletResponse selectAllProduct(Integer id);

    ServletResponse unselectAllProduct(Integer id);
}
